extends "../shengnvzhende-2/shengnvzhende-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("<限定>周围(九宫格范围)存在血量低于40%的友军时触发，恢复该角色生命值，并使我方所有角色承疗提高100%，敌方所有角色伤害降低50%，持续5秒", "休战时间")

var skFlag = true
func _upS():
	._upS()
	if not skFlag:return
	for i in getAroundChas(cell):
		if i.att.hp/i.att.maxHp < 0.4:
			utils.createSkillTextEff("休战时间", position)
			skFlag = false
			healCha(i, i.att.maxHp)
			for j in getAllChas(2):
				j.addBuff(buff.b_reHp.new(10, 5))
			for j in getAllChas(1):
				castBuff(j, buff.b_atkR.new(-5, 5))

func _onBattleEnd():
	._onBattleEnd()
	skFlag = true